import request from '@/utils/request'

export function findPage(query) {
  return request({
    url: '/brand/findPage',
    method: 'get',
    params: query // 继续使用 'params' 来构建查询字符串
  })
}


export function deleteBrand(brandId) {
  return request({
    url: '/brand/deleteById',
    method: 'get',
    params:{"brandId":brandId}//form
  })
}
export function addBrand(data) {
  return request({
    url: '/brand/add',
    method: 'post',
    data//json
  })
}

export function updateBrand(data) {
  return request({
    url: '/brand/update',
    method: 'post',
    data//json
  })
}

export function findBrandAllList(data) {
  return request({
    url: '/brand/findAllList',
    method: 'get',
    params:data
  })
}